package br.xraylol.test.client;

import static org.junit.Assert.assertNotNull;

import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;

import br.xraylol.bean.riot.RankedStatsBean;
import br.xraylol.client.StatsClient;
import br.xraylol.custom.list.PlayerStatsSummaryList;

@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration("classpath:spring-module.xml")
public class StatsTestClient {

	@Autowired
	StatsClient client;
	
	@Test
	public void findRankedStats() {
		RankedStatsBean rankedStats = client.findRankedStats(2000861L);
		
		assertNotNull(rankedStats);
	}
	
	@Test
	public void findSummariesStats() {
		PlayerStatsSummaryList playerStatsSummary = client.findSummariesStats(2000861L);
		
		assertNotNull(playerStatsSummary);
	}
}
